how to calculate capacity of water tank